package com.study.manage.listener;

import javax.servlet.ServletContextEvent;
import javax.servlet.annotation.WebListener;

import com.study.manage.dto.BaseProperties;

@WebListener
public class ServletContextListener extends BaseProperties
        implements javax.servlet.ServletContextListener {

    public void contextInitialized(ServletContextEvent sce) {
        sce.getServletContext().setAttribute("qiniuUrl", qiniuUrl);
        sce.getServletContext().setAttribute("serverH5Url", serverH5Url);
        sce.getServletContext().setAttribute("zone", zone);
        sce.getServletContext().setAttribute("serverUrl", serverUrl);
    }

    public void contextDestroyed(ServletContextEvent sce) {}


}
